package com.dubito.entity;

import java.util.List;

public class User extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4120030670662696280L;
	
	private String name;
	private char sex;
	//一个用户对应多个角色
	private List<Role> roles;
	
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public char getSex() {
		return sex;
	}
	public void setSex(char sex) {
		this.sex = sex;
	}
	@Override
	public String toString() {
		return "User [id="+getId()+",name=" + name + ", sex=" + sex + ", roles=" + roles + "]";
	}
	
	
	

}
